#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Lee
# File: log.py
# Time: 2022/9/23 17:24
from loguru import logger
from config.setting import GEN_LOG_PATH, ERR_LOG_PATH


class Log:
    # 将所有日志信息存入gen_log中
    logger.add(GEN_LOG_PATH, rotation='00:00:00', encoding='utf-8', level='INFO')
    # 将所有日志信息存入err_log中
    logger.add(ERR_LOG_PATH, rotation='00:00:00', encoding='utf-8', level='ERROR')
